﻿<%@ Page  Language="C#"  MasterPageFile="~/templates/template.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="GesWork.logeo" %>


    <asp:content ID="df" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
      
      
        <br /><br /><br /><br /><br />
       <div style="text-align:center">
        <asp:LoginView ID="LoginView1" runat="server">
            <LoggedInTemplate>
                <asp:Image ID="imgWelcome" runat="server"  ImageUrl="~/images/welcome.png" 
            />
            </LoggedInTemplate>
            <AnonymousTemplate>
                <asp:Login ID="Login1" runat="server" LoginButtonText="Autenticar" PasswordLabelText="Contraseña:" 
                    RememberMeText="Recordarme la proxima vez." TitleText="Autenticar" 
                    UserNameLabelText="Nombre de Usuario:">
                    <LayoutTemplate>
                    <div style="position:relative; background-color:#e6e6e6;">
                        <table border="2" cellpadding="1" cellspacing="0" 
                            style="border-collapse:collapse;margin-top:-100px; background-color:#e6e6e6"  >
                            <tr>
                                <td style="width:400px;">
                                    <table border="0" cellpadding="0" >
                                        <tr>
                                            <td align="center" colspan="2">
                                                Autenticar<br/><br/></td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2">
                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" style="position:relative;float:left;">Nombre 
                                                de Usuario:</asp:Label>
                                            
                                                <asp:TextBox ID="UserName" runat="server" style="position:relative;float:right ;margin-right:0px;background-color:Black;color:White;width:150px;margin-top:0px" ></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                    ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                    ToolTip="User Name is required." ValidationGroup="ctl01$Login1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" style="position:relative;float:left;">Contraseña:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Password" runat="server" TextMode="Password" style="position:relative;float:right ;margin-right:0px;background-color:Black;color:White;width:150px;margin-top:0px" ></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                    ControlToValidate="Password" ErrorMessage="Password is required." 
                                                    ToolTip="Password is required." ValidationGroup="ctl01$Login1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <asp:CheckBox ID="RememberMe" runat="server" 
                                                    Text="Recordarme la proxima vez." />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2" style="color:Red;">
                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2">
                                                <asp:ImageButton ID="LoginButton" runat="server" CommandName="Login" 
                                                    Text="Autenticar" ValidationGroup="ctl01$Login1"  ImageUrl="~/images/btnAceptar.png"/>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        </div>
                    </LayoutTemplate>
                </asp:Login>
            </AnonymousTemplate>
        </asp:LoginView>
        </div>
</p>
<p>
</p>
    </asp:content>

